xl: new global -N option for dry run
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 28 Jun 2011 11:19:15 +0000 (12:19 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 28 Jun 2011 11:19:15 +0000 (12:19 +0100)
commit4369b25867a0a05aa0b1e89d3c3ab1e942b4daeb
tree5a372be09b2c18caa1c39123cce007ccfd6f72f5
parent74f917afa34d2e2699fc9fee7fe43c3fe81768ae
xl: new global -N option for dry run

This sets a global dryrun_only variable, which individual commands are
expected to honour.  To avoid accidents, we introduce a new can_dryrun
member in the command table, which is initially set to 0 for each
command.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/xl.c
tools/libxl/xl.h
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c